
import logging
import sys
import os

# Ensure the project root is in sys.path
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

from core.sync_bf_data import run_scheduler

if __name__ == "__main__":
    # 配置日志
    logging.basicConfig(
        level=logging.INFO,
        format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
    )
    
    print("Starting Football Data Monitor...")
    try:
        run_scheduler()
    except KeyboardInterrupt:
        print("Monitor stopped.")